package com.bw.finance.controller;


import com.bw.finance.conf.ResponseResult;
import com.bw.finance.service.IEbankMgInfoService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zxx
 * @since 2020-08-19
 */
@RestController
@RequestMapping("/mg")
public class EbankMgInfoController {

    @Resource
    private IEbankMgInfoService iEbankMgInfoService;

//    查询借款信息的担保对象
    @PostMapping("findonegrtId/{id}")
    public ResponseResult findonegrtId(@PathVariable int id ){
        return iEbankMgInfoService.findonegrtId(id);
    }
}
